import React from 'react'
import {
    Form,
    Input,
    Button,
} from 'antd-mobile'
import { useNavigate } from 'react-router-dom'
function Index() {
    const navigate = useNavigate()
    const onFinish = (values) => {
        navigate('/list',{state:values})
    }
    return (
        <div>
            <Form onFinish={onFinish} footer={<Button block type='submit' color='primary'>查询</Button>}>
                <Form.Item name='start' label='开始'>
                    <Input></Input>
                </Form.Item>
                <Form.Item name='end' label='结束'>
                    <Input></Input>
                </Form.Item>
            </Form>

        </div>
    )
}

export default Index